package com.kadron.account;

import java.util.Date;

import com.kadron.entity.User;
import com.kadron.enumeration.Gender;
import com.kadron.enumeration.KLang;

public class AccountData {

	private String username;
	private String password;
	private String confirmPassword;
	private String email;

	private String nickname;
	private String firstname;
	private String lastname;
	private String address;
	
	private String tel;
	private String mob;
	
	private Date birthday;
	private KLang lang;
	
	private String desc;
	
	private boolean newsletter;
	
	private boolean nameVisible;
	private boolean emailVisible;
	private boolean birthdayVisible;
	private boolean telVisible;
	
	private Gender gender;
	
	private AccountData() {
		super();
	}
	
	public AccountData(String username, String password,String email, String nickname,
			String firstname, String lastname, String address, String tel,
			String mob, String avatar, Date birthday, KLang lang, String desc,
			boolean newsletter, boolean nameVisible, boolean emailVisible,
			boolean birthdayVisible, boolean telVisible, Gender gender) {
		this();
		this.username = username;
		this.password = password;
		this.email = email;
		this.nickname = nickname;
		this.firstname = firstname;
		this.lastname = lastname;
		this.address = address;
		this.tel = tel;
		this.mob = mob;
		this.birthday = birthday;
		this.lang = lang;
		this.desc = desc;
		this.newsletter = newsletter;
		this.nameVisible = nameVisible;
		this.emailVisible = emailVisible;
		this.birthdayVisible = birthdayVisible;
		this.telVisible = telVisible;
		this.gender = gender;
	}
	
	public AccountData(User user) {
		this();
		this.username = user.getUsername();
		this.password = user.getPassword();
		this.email = user.getEmail();
		this.nickname = user.getNickname();
		this.firstname = user.getFirstname();
		this.lastname = user.getLastname();
		this.address = user.getAddress();
		this.tel = user.getTel();
		this.mob = user.getMob();
		this.birthday = user.getBirthday();
		this.lang = user.getLang();
		this.desc = user.getDesc();
		this.newsletter = user.isNewsletter();
		this.nameVisible = user.isNameVisible();
		this.emailVisible = user.isEmailVisible();
		this.birthdayVisible = user.isBirthdayVisible();
		this.telVisible = user.isTelVisible();
		this.gender = user.getGender();
	}
	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getConfirmPassword() {
		return confirmPassword;
	}

	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMob() {
		return mob;
	}

	public void setMob(String mob) {
		this.mob = mob;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public KLang getLang() {
		return lang;
	}

	public void setLang(KLang lang) {
		this.lang = lang;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public boolean isNewsletter() {
		return newsletter;
	}

	public void setNewsletter(boolean newsletter) {
		this.newsletter = newsletter;
	}

	public boolean isNameVisible() {
		return nameVisible;
	}

	public void setNameVisible(boolean nameVisible) {
		this.nameVisible = nameVisible;
	}

	public boolean isEmailVisible() {
		return emailVisible;
	}

	public void setEmailVisible(boolean emailVisible) {
		this.emailVisible = emailVisible;
	}

	public boolean isBirthdayVisible() {
		return birthdayVisible;
	}

	public void setBirthdayVisible(boolean birthdayVisible) {
		this.birthdayVisible = birthdayVisible;
	}

	public boolean isTelVisible() {
		return telVisible;
	}

	public void setTelVisible(boolean telVisible) {
		this.telVisible = telVisible;
	}

	public Gender getGender() {
		return gender;
	}

	public void setGender(Gender gender) {
		this.gender = gender;
	}
	
}
